import gradio as gr


def echo(message, history):
    print(history)
    return f'you typed {message}!'


demo = gr.ChatInterface(
    fn=echo,
    type='messages',
    autofocus=True,
    title='Chatbot',
    description='aaaa',
)

if __name__ == '__main__':
    demo.launch()
